//
//  ErrorWrapper.swift
//  codelabs
//
//  Created by 雷雷 on 26/05/2025.
//

import Foundation


struct ErrorWrapper:Identifiable{
    let id:UUID
    let error:Error
    let guidance:String
    
    
    init(
        id: UUID = UUID(),
        error: Error = SampleError.errorRequired,
        guidance: String
    ) {
        self.id = id
        self.error = error
        self.guidance = guidance
    }
}

enum SampleError:Error{
    case errorRequired
}
